//-------------------------------------------------------------------
//	Copyright (c) 2012-2014 Zhirnov Andrey
//	This file is part of the "UXGEN-ES" project.
//	See copyright notice in "Engine.h".
//-------------------------------------------------------------------

package uxgenes.app;

//#ifdef UNLOCK_SCREEN

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


//
// Lock Screen Receiver
//
public class LockScreenReceiver extends BroadcastReceiver {

	public static boolean 	_wasScreenOn = true;

	
	@Override
	public void onReceive (Context context, Intent intent)
	{
		if ( intent.getAction().equals( Intent.ACTION_SCREEN_OFF ) )
		{
			_wasScreenOn = false;
			
			/*Intent intent11 = new Intent( context, LockScreenAppActivity.class );
			intent11.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(intent11);*/

			MainService.StartService( context, MainService.class );
		}
	}
}

//#endif UNLOCK_SCREEN
